/**
 * url 请求地址URL常量
 * @type {{}}
 */

const method = {get: "GET", post: "POST", put: "PUT", delete: "delete"};

const url = {
    v1: {
        /** 网站信息 URL */
        getWebInfo_url: {url: "/v1/webInfo", method: method.get},
        /** 网站菜单 URL */
        getMenuTree_url: {url: "/v1/menu/route/tree", method: method.get},
        /** 百宝箱 URL */
        getFavorite_url: {url: "/v1/favorite/tree", method: method.get},
        /** 赞赏信息 URL */
        uploadPayImg_url: {
            url: "/v1/upload/pay/img?money=",
            method: method.post,
            headers: {'Content-Type': 'multipart/articles-data'}
        },
        getSponsor_url: {url: "/v1/sponsor", method: method.get},
        /** 说说 URL */
        createSay_url: {url: "/v1/say", method: method.post},
        sayComment_url: {url: "/v1/say/comment", method: method.post},
        sayLike_url: {url: "/v1/say/like?say_id=", method: method.get},
        getSayList_url: {url: "/v1/say/list", method: method.get},
        /** 热搜 URL */
        getHotWeiBo_url: {url: "/v1/hot/weibo", method: method.get},
        getHotBaiDu_url: {url: "/v1/hot/baidu", method: method.get},
        getHotZhiHu_url: {url: "/v1/hot/zhihu", method: method.get},
        getHotCDN_url: {url: "/v1/hot/csdn", method: method.get},
        getHotTouT_url: {url: "/v1/hot/toutiao", method: method.get},
        /** 留言 URL */
        createMessage_url: {url: "/v1/message", method: method.post},
        getMessage_url: {url: "/v1/message", method: method.get},
        /** 友人链 URL */
        createFriends_url: {url: "/v1/friends", method: method.post},
        getFriends_url: {url: "/v1/friends", method: method.get},
        /** 用户注册 */
        captcha_url: {url: "/v1/captcha?email=", method: method.get},
        register_url: {url: "/v1/register", method: method.post},
        /** 用户登录 */
        login_url: {url: "/v1/login", method: method.post},
        logout_url: {url: "/v1/logout", method: method.get},
        userinfo_url: {url: "/v1/userinfo", method: method.get},
    },
    v2: {},
};

export default url;